package com.tianji.promotion.mapper;

import com.tianji.promotion.domain.po.Coupon;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 * 优惠券的规则信息 Mapper 接口
 * </p>
 *
 * @author ltd
 * @since 2024-07-02
 */
public interface CouponMapper extends BaseMapper<Coupon> {
    @Update("update coupon set issue_num =issue_num+1 when id=#{id}")
    void updateIssusNum(Long id);
}
